@payroll
Feature: Payroll Management Functionalities
File name: payroll.feature
Relative path: features/payroll.feature
Given
TR user logged into the application
Then
TR user creates a new labor order
Then
TR user verifies that the labor order is pushed to the summary sheet and verifies the details
Then
TR user creates a timesheet for the same labor order
Then
user click on logout button
Then
Ops user logged into the application
Then
Ops user submits and approve the timesheet
Then
user click on logout button
Then
OCU user logged into the application
locator.waitFor: Timeout 30000ms exceeded.
=========================== logs ===========================
waiting for locator('xpath=//button[normalize-space(text())=\'BATCH READY ?\']') to be visible
============================================================
at PlaywrightWrapper.(anonymous) (C:\SOTA-AUTOMATION\src\helper\wrapper\PlaywrightWrappers.ts:64:54)
at step (C:\SOTA-AUTOMATION\src\helper\wrapper\PlaywrightWrappers.ts:33:23)
at Object.next (C:\SOTA-AUTOMATION\src\helper\wrapper\PlaywrightWrappers.ts:14:53)
at C:\SOTA-AUTOMATION\src\helper\wrapper\PlaywrightWrappers.ts:8:71
at __awaiter (C:\SOTA-AUTOMATION\src\helper\wrapper\PlaywrightWrappers.ts:4:12)
at PlaywrightWrapper.waitAndClick (C:\SOTA-AUTOMATION\src\helper\wrapper\PlaywrightWrappers.ts:58:16)
at yardOrderPagePOC.(anonymous) (C:\SOTA-AUTOMATION\src\pages\yardOrderPOC.page.ts:732:60)
at step (C:\SOTA-AUTOMATION\src\pages\yardOrderPOC.page.ts:33:23)
at Object.next (C:\SOTA-AUTOMATION\src\pages\yardOrderPOC.page.ts:14:53)
at C:\SOTA-AUTOMATION\src\pages\yardOrderPOC.page.ts:8:71
at __awaiter (C:\SOTA-AUTOMATION\src\pages\yardOrderPOC.page.ts:4:12)
at yardOrderPagePOC.ClickOnBatchReady (C:\SOTA-AUTOMATION\src\pages\yardOrderPOC.page.ts:729:16)
at World.(anonymous) (C:\SOTA-AUTOMATION\src\test\steps\yardOrderPOC.steps.ts:488:52)
at step (C:\SOTA-AUTOMATION\src\test\steps\yardOrderPOC.steps.ts:33:23)
at Object.next (C:\SOTA-AUTOMATION\src\test\steps\yardOrderPOC.steps.ts:14:53)
at fulfilled (C:\SOTA-AUTOMATION\src\test\steps\yardOrderPOC.steps.ts:5:58)
Then
Click on shift
Then
click on child tab payroll-timesheet screen
// With Callbacks
Then (/^click on child tab payroll-timesheet screen$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
Then (/^click on child tab payroll-timesheet screen$/, () => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
Then
Add remarks by OCU user
Then
verify Notify manager functionality